package com.ternnetwork.oa.service.note;

import com.ternnetwork.commons.model.http.BaseResponse;
import com.ternnetwork.oa.dto.note.NoteDto;
import com.ternnetwork.oa.dto.note.NoteQueryDto;
import org.springframework.data.domain.Pageable;

public interface NoteService {
    BaseResponse add(NoteDto dto, String username);
    BaseResponse findByPage(Pageable pageable, NoteQueryDto dto, String username);
    BaseResponse update(NoteDto dto, String username);
    BaseResponse deleteById(Long id,String username);
    BaseResponse getOne(Long id,String username);
    BaseResponse addShare(Long id, String username);
    BaseResponse deleteShare(Long id, String username);
    BaseResponse getShareOne(String shareCode);
}
